package com.syy.system.service.impl;

import com.syy.system.domain.dto.SmsCodeSendReqDTO;
import com.syy.system.domain.vo.AuthSmsSendReqVO;
import com.syy.system.service.AuthConvert;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
@Component
public class AuthConvertImpl implements AuthConvert {

    @Override
    public SmsCodeSendReqDTO convert(AuthSmsSendReqVO reqVO) {
        if ( reqVO == null ) {
            return null;
        }
        System.out.println("reqVO = " + reqVO);
        SmsCodeSendReqDTO smsCodeSendReqDTO = new SmsCodeSendReqDTO();
        smsCodeSendReqDTO.setMobile( reqVO.getMobile() );
        smsCodeSendReqDTO.setScene( reqVO.getScene() );
        return smsCodeSendReqDTO;
    }
}
